package personnel.department.pages;

import java.util.List;

import personnel.department.dao.entity.AdoptedToStructural;
import personnel.department.dao.entity.Career;
import personnel.department.dao.entity.Certificate;
import personnel.department.dao.entity.Degree;
import personnel.department.dao.entity.Education;
import personnel.department.dao.entity.Employee;
import personnel.department.dao.entity.Internship;
import personnel.department.dao.entity.Qualification;
import personnel.department.dao.entity.Quit;
import personnel.department.dao.entity.Retraining;
import personnel.department.dao.entity.Translation;
import personnel.department.dao.entity.Validation;


//TODO Дабы обеспечить доступ к generic классу приходится генерить анонимные классы потомки
public class ModelProviderFactory {
	
	public static List<Employee> employeeModel() {
		return new ModelProvider<Employee>(){}.getObjects();
	}
	
//	public static List<Education> educationModel() {
//		return new ModelProvider<Education>(){}.getObjects();
//	}
//
//	public static List<Career> careerModel() {
//		return new ModelProvider<Career>(){}.getObjects();
//	}
	
	public static List<Certificate> certificateModel() {
		return new ModelProvider<Certificate>(){}.getObjects();
	}

	public static List<Qualification> qualificationModel() {
		return new ModelProvider<Qualification>(){}.getObjects();
	}

	public static List<Retraining> retrainingModel() {
		return new ModelProvider<Retraining>(){}.getObjects();
	}

	public static List<Validation> validationModel() {
		return new ModelProvider<Validation>(){}.getObjects();
	}

	public static List<Degree> degreeModel() {
		return new ModelProvider<Degree>(){}.getObjects();
	}

	public static List<AdoptedToStructural> adoptedToStructuralModel() {
		return new ModelProvider<AdoptedToStructural>(){}.getObjects();
	}

	public static List<Translation> translationModel() {
		return new ModelProvider<Translation>(){}.getObjects();
	}

	public static List<Quit> quitModel() {
		return new ModelProvider<Quit>(){}.getObjects();
	}

	public static List<Internship> InternshipModel() {
		return new ModelProvider<Internship>(){}.getObjects();
	}
	
}
